package com.syxbbs.forum.services;

import com.syxbbs.forum.model.User;
import org.springframework.stereotype.Service;

@Service
public interface IUserService {
    void createNormal(User user);

    User selectByUserName(String username);

    User login(String username,String password);


    /*@Transactional*/
    User selectById(Long id);


    /*@Transactional*/
    void addOneArticleCountById(Long id);

    //用户发帖数减1
    void subOneArticleCountById(Long id);

    //修改个人信息
    void modifyInfo(User user);

    void modifyPassword(Long id,String newPassword,String oldPassword);




}
